package com.thread.syn3;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

/**
 * Administrator
 *
 * @author jiangbang
 * @date 2016/7/21
 */
public class TimerDemo05 {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("so easy.....");
            }
        },new Date(System.currentTimeMillis()+5000),200);
    }
}
